home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / os2 / newsbt96.zip / newsbeat.pkg < prev    next >
Text File  |  1996-07-12  |  9KB  |  235 lines

  1. **********************************************************************
  2. *  See the Software Installer Reference for information on creating a
  3. *  package file.
  4. **********************************************************************
  5.  
  6.  
  7. *---------------------------------------------------------------------
  8. *  Service level
  9. *---------------------------------------------------------------------
  10. SERVICELEVEL
  11.    LEVEL = '000001'
  12.  
  13.  
  14. **********************************************************************
  15.  
  16.  
  17. *---------------------------------------------------------------------
  18. *  Include 1 DISK entry for each diskette needed.
  19. *
  20. *  The following changes are required:
  21. *  - Change "<Product Name>" in the each NAME keyword to your product
  22. *    name.
  23. *  - Set each VOLUME keyword to a unique value.
  24. *---------------------------------------------------------------------
  25. DISK
  26.    NAME   = 'Newsbeat for OS/2 - Diskette 1',
  27.    VOLUME = 'NEWS001'
  28.  
  29. **********************************************************************
  30.  
  31.  
  32. *---------------------------------------------------------------------
  33. *  Default directories
  34. *---------------------------------------------------------------------
  35. PATH
  36.    FILE      = 'C:/NEWSBEAT',
  37.    FILELABEL = 'Newsbeat install directory'
  38.  
  39.  
  40. **********************************************************************
  41.  
  42.  
  43. *---------------------------------------------------------------------
  44. *  Exit to define your product folder's object ID.
  45. *
  46. *  The following changes are required:
  47. *  - Set variable FOLDERID to your folder's object ID; be sure to make
  48. *    the value sufficiently unique; do not use "PRODFLDR".
  49. *---------------------------------------------------------------------
  50. FILE
  51.    EXITWHEN = 'ALWAYS',
  52.    EXIT     = 'SETVAR FOLDERID=Newsbeat'
  53.  
  54.  
  55. **********************************************************************
  56.  
  57.  
  58. *---------------------------------------------------------------------
  59. *  This component creates a folder on the desktop.  You must create
  60. *  the folder in a hidden component to ensure that deleting your
  61. *  product does not delete the folder before the objects within the
  62. *  folder are deleted.
  63. *---------------------------------------------------------------------
  64. COMPONENT
  65.    NAME    = 'INSFIRST',
  66.    ID      = 'INSFIRST',
  67.    DISPLAY = 'NO',
  68.    SIZE    = '1000'
  69.  
  70. *---------------------------------------------------------------------
  71. *  Include a FILE entry to install the catalog file.
  72. *
  73. *  The following changes are required:
  74. *  - Change the SOURCE and PWS keywords to the name of your catalog
  75. *    file.
  76. *---------------------------------------------------------------------
  77. FILE
  78.    VOLUME        = 'PROD001',
  79.    WHEN          = 'OUTOFDATE',
  80.    REPLACEINUSE  = 'I U D R',
  81.    UNPACK        = 'NO',
  82.    SOURCE        = 'DRIVE: NEWSBEAT.ICF',
  83.    PWS           = 'NEWSBEAT.ICF',
  84.    DATE          = '950101',
  85.    TIME          = '1200',
  86.    SIZE          = '1000'
  87.  
  88. *---------------------------------------------------------------------
  89. *  Set variable CATALOG to be the name of the catalog file;
  90. *  the variable is used in EPFISINC.PKG.
  91. *
  92. *  The following changes are required:
  93. *  - Change "CATALOG.ICF" in the EXIT keyword to the name of your
  94. *    catalog file.
  95. *---------------------------------------------------------------------
  96. FILE
  97.    EXITWHEN      = 'INSTALL || UPDATE || RESTORE',
  98.    EXITIGNOREERR = 'NO',
  99.    EXIT          = 'SETVAR CATALOG=NEWSBEAT.ICF'
  100.  
  101. *---------------------------------------------------------------------
  102. *  Include a FILE entry to install the description file.
  103. *
  104. *  The following changes are required:
  105. *  - Change the SOURCE and PWS keywords to the name of your
  106. *    description file.
  107. *---------------------------------------------------------------------
  108. FILE
  109.    VOLUME        = 'PROD001',
  110.    WHEN          = 'OUTOFDATE',
  111.    REPLACEINUSE  = 'I U D R',
  112.    UNPACK        = 'NO',
  113.    SOURCE        = 'DRIVE: NEWSBEAT.DSC',
  114.    PWS           = 'NEWSBEAT.DSC',
  115.    DATE          = '950101',
  116.    TIME          = '1200',
  117.    SIZE          = '1000'
  118.  
  119. *---------------------------------------------------------------------
  120. *  Create your product's folder on the desktop.
  121. *
  122. *  The following changes are required:
  123. *  - Change "<Product Name>" in the EXIT keyword to your product name.
  124. *---------------------------------------------------------------------
  125. FILE
  126.    EXITWHEN      = 'INSTALL || UPDATE',
  127.    EXITIGNOREERR = 'NO',
  128.    EXIT          = 'CREATEWPSOBJECT WPFolder "Newsbeat for OS/2"
  129.                    <WP_DESKTOP> R
  130.                    "OBJECTID=<%FOLDERID%>;"'
  131.  
  132. *---------------------------------------------------------------------
  133. *  The included package file will install and register the
  134. *  Installation Utility.  You do not need to make any changes to
  135. *  EPFISINC.PKG.
  136. *---------------------------------------------------------------------
  137. INCLUDE
  138.    NAME = 'DRIVE: EPFISINC.PKG'
  139.  
  140.  
  141. **********************************************************************
  142.  
  143.  
  144. *---------------------------------------------------------------------
  145. *  Include 1 COMPONENT entry for each component.
  146. *
  147. *  The following changes are required:
  148. *  - Change "Component 1" in the NAME keyword to the name of the
  149. *    component.
  150. *  - Describe the component in the DESCRIPTION keyword.
  151. *
  152. *  The component must require at least the INSFIRST and DELLAST
  153. *  components.
  154. *---------------------------------------------------------------------
  155. COMPONENT
  156.    NAME        = 'Newsbeat Executeable',
  157.    ID          = 'COMP1',
  158.    REQUIRES    = 'INSFIRST DELLAST',
  159.    DISPLAY     = 'YES',
  160.    DESCRIPTION = 'Newsbeat for OS/2 v1.0',
  161.    SIZE        = '10000'
  162.  
  163. *---------------------------------------------------------------------
  164. *  Include 1 FILE entry for each file in the component.
  165. *
  166. *  The following changes are required:
  167. *  - Change the SOURCE and PWS keywords to the name of the file to
  168. *    install.
  169. *---------------------------------------------------------------------
  170. FILE
  171.    VOLUME        = 'PROD001',
  172.    WHEN          = 'OUTOFDATE',
  173.    REPLACEINUSE  = 'I U D R',
  174.    UNPACK        = 'NO',
  175.    SOURCE        = 'DRIVE: NEWSBEAT.EXE',
  176.    PWS           = 'NEWSBEAT.EXE',
  177.    DATE          = '950101',
  178.    TIME          = '1200',
  179.    SIZE          = '1000'
  180.  
  181. *---------------------------------------------------------------------
  182. *  Create a program object in the product folder.
  183. *
  184. *  The following changes are required:
  185. *  - Change "COMP1A" in the EXIT keyword to the name of the object.
  186. *  - Change "COMP1A.EXE" in the EXIT keyword after EXENAME to the
  187. *    name of the program to run.
  188. *  - Change "[]" in the EXIT keyword after PARAMETERS to any
  189. *    parameters required to run the object; if no parameters are
  190. *    required, delete "PARAMETERS=[];" from the EXIT keyword.
  191. *  - Change "COMP1A" in the EXIT keyword after OBJECTID to the
  192. *    program's object ID; be sure to make the value sufficiently
  193. *    unique; the value must be enclosed in "<>" characters; do not use
  194. *    "COMP1A" or the value of the FOLDERID variable.
  195. *---------------------------------------------------------------------
  196. FILE
  197.    EXITWHEN      = 'INSTALL || UPDATE || RESTORE',
  198.    EXITIGNOREERR = 'NO',
  199.    EXIT          = 'CREATEWPSOBJECT WPProgram "Newsbeat"
  200.                    <%FOLDERID%> R
  201.                    "EXENAME=%EPFIFILEDIR%\NEWSBEAT.EXE;STARTUPDIR=%EPFIFILEDIR%;OBJECTID=<Newsbeat 1.0>;"'
  202.  
  203. *---------------------------------------------------------------------
  204. *  Delete the program object.
  205. *
  206. *  The following changes are required:
  207. *  - Change "COMP1A" in the EXIT keyword to the program's object ID;
  208. *    be sure to use the object ID that you gave the object when it was
  209. *    created in the previous FILE entry; the value must be enclosed in
  210. *    "<>" characters.
  211. *---------------------------------------------------------------------
  212. FILE
  213.    EXITWHEN      = 'DELETE',
  214.    EXITIGNOREERR = 'YES',
  215.    EXIT          = 'DELETEWPSOBJECT <Newsbeat 1.0>'
  216.  
  217.  
  218. *---------------------------------------------------------------------
  219. *  This component deletes the product folder;